const str1 = 'nba23issNBAbignuma=ber';
const str2 = '玩吉尔的lolnba';
// 部分查找 indexOf reg includes

const reg= /nba$/i;
console.log(reg.test(str1));
console.log(reg.test(str2));
